package thread.exception;

/**
 * 捕获线程的运行时异常
 *
 * @author lwmzzz
 * @version 1.0
 * @date 2021/5/16 21:04
 */
public class Test01 {
    public static void main(String[] args) {
        new Thread(() -> {//runtime异常无法捕获 只能捕获CheckedException
            System.out.println("=======");
            try {
                int i = 1 / 0;
            } catch (Exception e) {
                e.printStackTrace();
            }
            System.out.println("*******");
        }).start();
    }
}
